home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 April: Penguin on DISC / ADC Developer CD (1993-04) (''Penguin On DISC'')_iso / Dev.CD Apr 93.iso / Utilities / MPW Interfaces 7.1 Beta / PInterfaces / SysEqu.p < prev    next >
Encoding:
Text File  |  1992-08-28  |  25.2 KB  |  446 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3. Created: Friday, November 15, 1991 at 9:35 AM
  4.  SysEqu.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1985-1992
  8.   All rights reserved
  9.  
  10. *** Warning: This is an beta version of the Interfaces for Cube-E. 
  11. ***          Things may change.  Caveat Programmer.
  12.  
  13.  
  14. }
  15.  
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT SysEqu;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED UsingSysEqu}
  27. {$SETC UsingSysEqu := 1}
  28.  
  29.  
  30. CONST
  31. PCDeskPat = $20B;                {[GLOBAL VAR]  desktop pat, top bit only! others are in use}
  32. HiKeyLast = $216;                {[GLOBAL VAR]  Same as KbdVars}
  33. KbdLast = $218;                    {[GLOBAL VAR]  Same as KbdVars+2}
  34. ExpandMem = $2B6;                {[GLOBAL VAR]  pointer to expanded memory block}
  35. SCSIBase = $0C00;                {[GLOBAL VAR]  (long) base address for SCSI chip read}
  36. SCSIDMA = $0C04;                {[GLOBAL VAR]  (long) base address for SCSI DMA}
  37. SCSIHsk = $0C08;                {[GLOBAL VAR]  (long) base address for SCSI handshake}
  38. SCSIGlobals = $0C0C;            {[GLOBAL VAR]  (long) ptr for SCSI mgr locals}
  39. RGBBlack = $0C10;                {[GLOBAL VAR]  (6 bytes) the black field for color}
  40. RGBWhite = $0C16;                {[GLOBAL VAR]  (6 bytes) the white field for color}
  41. RowBits = $0C20;                {[GLOBAL VAR]  (word) screen horizontal pixels}
  42. ColLines = $0C22;                {[GLOBAL VAR]  (word) screen vertical pixels}
  43. ScreenBytes = $0C24;            {[GLOBAL VAR]  (long) total screen bytes}
  44. NMIFlag = $0C2C;                {[GLOBAL VAR]  (byte) flag for NMI debounce}
  45. VidType = $0C2D;                {[GLOBAL VAR]  (byte) video board type ID}
  46. VidMode = $0C2E;                {[GLOBAL VAR]  (byte) video mode (4=4bit color)}
  47. SCSIPoll = $0C2F;                {[GLOBAL VAR]  (byte) poll for device zero only once.}
  48. SEVarBase = $0C30;                {[GLOBAL VAR] }
  49. MMUFlags = $0CB0;                {[GLOBAL VAR]  (byte) cleared to zero (reserved for future use)}
  50. MMUType = $0CB1;                {[GLOBAL VAR]  (byte) kind of MMU present}
  51. MMU32bit = $0CB2;                {[GLOBAL VAR]  (byte) boolean reflecting current machine MMU mode}
  52. MMUFluff = $0CB3;                {[GLOBAL VAR]  (byte) fluff byte forced by reducing MMUMode to MMU32bit.}
  53. MMUTbl = $0CB4;                    {[GLOBAL VAR]  (long) pointer to MMU Mapping table}
  54. MMUTblSize = $0CB8;                {[GLOBAL VAR]  (long) size of the MMU mapping table}
  55. SInfoPtr = $0CBC;                {[GLOBAL VAR]  (long) pointer to Slot manager information}
  56. ASCBase = $0CC0;                {[GLOBAL VAR]  (long) pointer to Sound Chip}
  57. SMGlobals = $0CC4;                { (long) pointer to Sound Manager Globals}
  58. TheGDevice = $0CC8;                {[GLOBAL VAR]  (long) the current graphics device}
  59. CQDGlobals = $0CCC;                { (long) quickDraw global extensions}
  60. ADBBase = $0CF8;                {[GLOBAL VAR]  (long) pointer to Front Desk Buss Variables}
  61. WarmStart = $0CFC;                {[GLOBAL VAR]  (long) flag to indicate it is a warm start}
  62. TimeDBRA = $0D00;                {[GLOBAL VAR]  (word) number of iterations of DBRA per millisecond}
  63. TimeSCCDB = $0D02;                {[GLOBAL VAR]  (word) number of iter's of SCC access & DBRA.}
  64. SlotQDT = $0D04;                {[GLOBAL VAR]  ptr to slot queue table}
  65. SlotPrTbl = $0D08;                {[GLOBAL VAR]  ptr to slot priority table}
  66. SlotVBLQ = $0D0C;                {[GLOBAL VAR]  ptr to slot VBL queue table}
  67. ScrnVBLPtr = $0D10;                {[GLOBAL VAR]  save for ptr to main screen VBL queue}
  68. SlotTICKS = $0D14;                {[GLOBAL VAR]  ptr to slot tickcount table}
  69. TableSeed = $0D20;                {[GLOBAL VAR]  (long) seed value for color table ID's}
  70. SRsrcTblPtr = $0D24;            {[GLOBAL VAR]  (long) pointer to slot resource table.}
  71. JVBLTask = $0D28;                {[GLOBAL VAR]  vector to slot VBL task interrupt handler}
  72. WMgrCPort = $0D2C;                {[GLOBAL VAR]  window manager color port }
  73. VertRRate = $0D30;                {[GLOBAL VAR]  (word) Vertical refresh rate for start manager. }
  74. ChunkyDepth = $0D60;            {[GLOBAL VAR]  depth of the pixels}
  75. CrsrPtr = $0D62;                {[GLOBAL VAR]  pointer to cursor save area}
  76. PortList = $0D66;                {[GLOBAL VAR]  list of grafports}
  77. MickeyBytes = $0D6A;            {[GLOBAL VAR]  long pointer to cursor stuff}
  78. QDErrLM = $0D6E;                {[GLOBAL VAR] QDErr has name conflict w/ type. QuickDraw error code [word]}
  79. VIA2DT = $0D70;                    {[GLOBAL VAR]  32 bytes for VIA2 dispatch table for NuMac}
  80. SInitFlags = $0D90;                {[GLOBAL VAR]  StartInit.a flags [word]}
  81. DTQueue = $0D92;                {[GLOBAL VAR]  (10 bytes) deferred task queue header}
  82. DTQFlags = $0D92;                {[GLOBAL VAR]  flag word for DTQueue}
  83. DTskQHdr = $0D94;                {[GLOBAL VAR]  ptr to head of queue}
  84. DTskQTail = $0D98;                {[GLOBAL VAR]  ptr to tail of queue}
  85. JDTInstall = $0D9C;                {[GLOBAL VAR]  (long) ptr to deferred task install routine}
  86. HiliteRGB = $0DA0;                {[GLOBAL VAR]  6 bytes: rgb of hilite color}
  87. TimeSCSIDB = $0B24;                {[GLOBAL VAR]  (word) number of iter's of SCSI access & DBRA}
  88. DSCtrAdj = $0DA8;                {[GLOBAL VAR]  (long) Center adjust for DS rect.}
  89. IconTLAddr = $0DAC;                {[GLOBAL VAR]  (long) pointer to where start icons are to be put.}
  90. VideoInfoOK = $0DB0;            {[GLOBAL VAR]  (long) Signals to CritErr that the Video card is ok}
  91. EndSRTPtr = $0DB4;                {[GLOBAL VAR]  (long) Pointer to the end of the Slot Resource Table (Not the SRT buffer).}
  92. SDMJmpTblPtr = $0DB8;            {[GLOBAL VAR]  (long) Pointer to the SDM jump table}
  93. JSwapMMU = $0DBC;                {[GLOBAL VAR]  (long) jump vector to SwapMMU routine}
  94. SdmBusErr = $0DC0;                {[GLOBAL VAR]  (long) Pointer to the SDM busErr handler}
  95. LastTxGDevice = $0DC4;            {[GLOBAL VAR]  (long) copy of TheGDevice set up for fast text measure}
  96. NewCrsrJTbl = $88C;                {[GLOBAL VAR]  location of new crsr jump vectors}
  97. JAllocCrsr = $88C;                {[GLOBAL VAR]  (long) vector to routine that allocates cursor}
  98. JSetCCrsr = $890;                {[GLOBAL VAR]  (long) vector to routine that sets color cursor}
  99. JOpcodeProc = $894;                {[GLOBAL VAR]  (long) vector to process new picture opcodes}
  100. CrsrBase = $898;                {[GLOBAL VAR]  (long) scrnBase for cursor}
  101. CrsrDevice = $89C;                {[GLOBAL VAR]  (long) current cursor device}
  102. SrcDevice = $8A0;                {[GLOBAL VAR]  (LONG) Src device for Stretchbits}
  103. MainDevice = $8A4;                {[GLOBAL VAR]  (long) the main screen device}
  104. DeviceList = $8A8;                {[GLOBAL VAR]  (long) list of display devices}
  105. CrsrRow = $8AC;                    {[GLOBAL VAR]  (word) rowbytes for current cursor screen}
  106. QDColors = $8B0;                {[GLOBAL VAR]  (long) handle to default colors}
  107. HiliteMode = $938;                {[GLOBAL VAR]  used for color highlighting}
  108. BusErrVct = $08;                {[GLOBAL VAR]  bus error vector}
  109. RestProc = $A8C;                {[GLOBAL VAR]  Resume procedure f InitDialogs [pointer]}
  110. ROM85 = $28E;                    {[GLOBAL VAR]  (word) actually high bit - 0 for ROM vers $75 (sic) and later}
  111. ROMMapHndl = $B06;                {[GLOBAL VAR]  (long) handle of ROM resource map}
  112. ScrVRes = $102;                    {[GLOBAL VAR] Pixels per inch vertically (word)
  113.    screen vertical dots/inch [word]}
  114. ScrHRes = $104;                    {[GLOBAL VAR] Pixels per inch horizontally (word)
  115.    screen horizontal dots/inch [word]}
  116. ScrnBase = $824;                {[GLOBAL VAR] Address of main screen buffer
  117.    Screen Base [pointer]}
  118. ScreenRow = $106;                {[GLOBAL VAR]  rowBytes of screen [word]}
  119. MBTicks = $16E;                    {[GLOBAL VAR]  tick count @ last mouse button [long]}
  120. JKybdTask = $21A;                {[GLOBAL VAR]  keyboard VBL task hook [pointer]}
  121. KeyLast = $184;                    {[GLOBAL VAR]  ASCII for last valid keycode [word]}
  122. KeyTime = $186;                    {[GLOBAL VAR]  tickcount when KEYLAST was rec'd [long]}
  123. KeyRepTime = $18A;                {[GLOBAL VAR]  tickcount when key was last repeated [long]}
  124. SPConfig = $1FB;                {[GLOBAL VAR] Use types for serial ports (byte)
  125.    config bits: 4-7 A, 0-3 B (see use type below)}
  126. SPPortA = $1FC;                    {[GLOBAL VAR] Modem port configuration (word)
  127.    SCC port A configuration [word]}
  128. SPPortB = $1FE;                    {[GLOBAL VAR] Printer port configuration (word)
  129.    SCC port B configuration [word]}
  130. SCCRd = $1D8;                    {[GLOBAL VAR] SCC read base address
  131.    SCC base read address [pointer]}
  132. SCCWr = $1DC;                    {[GLOBAL VAR] SCC write base address
  133.    SCC base write address [pointer]}
  134. DoubleTime = $2F0;                {[GLOBAL VAR] Double-click interval in ticks (long)
  135.    double click ticks [long]}
  136. CaretTime = $2F4;                {[GLOBAL VAR] Caret-blink interval in ticks (long)
  137.    caret blink ticks [long]}
  138. KeyThresh = $18E;                {[GLOBAL VAR] Auto-key threshold (word)
  139.    threshold for key repeat [word]}
  140. KeyRepThresh = $190;            {[GLOBAL VAR] Auto-key rate (word)
  141.    key repeat speed [word]}
  142. SdVolume = $260;                {[GLOBAL VAR] Current speaker volume (byte:  low-order three bits only)
  143.    Global volume(sound) control [byte]}
  144. Ticks = $16A;                    {[GLOBAL VAR] Current number of ticks since system startup (long)
  145.    Tick count, time since boot [unsigned long]}
  146. TimeLM = $20C;                    {[GLOBAL VAR] Time has name conflict w/ type. Clock time (extrapolated) [long]}
  147. MonkeyLives = $100;                {[GLOBAL VAR]  monkey lives if >= 0 [word]}
  148. SEvtEnb = $15C;                    {[GLOBAL VAR] 0 if SystemEvent should return FALSE (byte)
  149.    enable SysEvent calls from GNE [byte]}
  150. JournalFlag = $8DE;                {[GLOBAL VAR] Journaling mode (word)
  151.    journaling state [word]}
  152. JournalRef = $8E8;                {[GLOBAL VAR] Reference number of journaling device driver (word)
  153.    Journalling driver's refnum [word]}
  154. BufPtr = $10C;                    {[GLOBAL VAR] Address of end of jump table
  155.    top of application memory [pointer]}
  156. StkLowPt = $110;                {[GLOBAL VAR]  Lowest stack as measured in VBL task [pointer]}
  157. TheZone = $118;                    {[GLOBAL VAR] Address of current heap zone
  158.    current heap zone [pointer]}
  159. ApplLimit = $130;                {[GLOBAL VAR] Application heap limit
  160.    application limit [pointer]}
  161. SysZone = $2A6;                    {[GLOBAL VAR] Address of system heap zone
  162.    system heap zone [pointer]}
  163. ApplZone = $2AA;                {[GLOBAL VAR] Address of application heap zone
  164.    application heap zone [pointer]}
  165. HeapEnd = $114;                    {[GLOBAL VAR] Address of end of application heap zone
  166.    end of heap [pointer]}
  167. HiHeapMark = $BAE;                {[GLOBAL VAR]  (long) highest address used by a zone below sp<01Nov85 JTC>}
  168. MemErr = $220;                    {[GLOBAL VAR]  last memory manager error [word]}
  169. UTableBase = $11C;                {[GLOBAL VAR] Base address of unit table
  170.    unit I/O table [pointer]}
  171. UnitNtryCnt = $1D2;                {[GLOBAL VAR]  count of entries in unit table [word]}
  172. JFetch = $8F4;                    {[GLOBAL VAR] Jump vector for Fetch function
  173.    fetch a byte routine for drivers [pointer]}
  174. JStash = $8F8;                    {[GLOBAL VAR] Jump vector for Stash function
  175.    stash a byte routine for drivers [pointer]}
  176. JIODone = $8FC;                    {[GLOBAL VAR] Jump vector for IODone function
  177.    IODone entry location [pointer]}
  178. DrvQHdr = $308;                    {[GLOBAL VAR] Drive queue header (10 bytes)
  179.    queue header of drives in system [10 bytes]}
  180. BootDrive = $210;                {[GLOBAL VAR]  drive number of boot drive [word]}
  181. EjectNotify = $338;                {[GLOBAL VAR]  eject notify procedure [pointer]}
  182. IAZNotify = $33C;                {[GLOBAL VAR]  world swaps notify procedure [pointer]}
  183. SFSaveDisk = $214;                {[GLOBAL VAR] Negative of volume reference number used by Standard File Package (word)
  184.    last vRefNum seen by standard file [word]}
  185. CurDirStore = $398;                {[GLOBAL VAR]  save dir across calls to Standard File [long]}
  186. OneOne = $A02;                    {[GLOBAL VAR] $00010001
  187.    constant $00010001 [long]}
  188. MinusOne = $A06;                {[GLOBAL VAR] $FFFFFFFF
  189.    constant $FFFFFFFF [long]}
  190. Lo3Bytes = $31A;                {[GLOBAL VAR] $00FFFFFF
  191.    constant $00FFFFFF [long]}
  192. ROMBase = $2AE;                    {[GLOBAL VAR] Base address of ROM
  193.    ROM base address [pointer]}
  194. RAMBase = $2B2;                    {[GLOBAL VAR] Trap dispatch table's base address for routines in RAM
  195.    RAM base address [pointer]}
  196. SysVersion = $15A;                {[GLOBAL VAR]  version # of RAM-based system [word]}
  197. RndSeed = $156;                    {[GLOBAL VAR] Random number seed (long)
  198.    random seed/number [long]}
  199. Scratch20 = $1E4;                {[GLOBAL VAR] 20-byte scratch area
  200.    scratch [20 bytes]}
  201. Scratch8 = $9FA;                {[GLOBAL VAR] 8-byte scratch area
  202.    scratch [8 bytes]}
  203. ToolScratch = $9CE;                {[GLOBAL VAR] 8-byte scratch area
  204.    scratch [8 bytes]}
  205. ApplScratch = $A78;                {[GLOBAL VAR] 12-byte application scratch area
  206.    scratch [12 bytes]}
  207. ScrapSize = $960;                {[GLOBAL VAR] Size in bytes of desk scrap (long)
  208.    scrap length [long]}
  209. ScrapHandle = $964;                {[GLOBAL VAR] Handle to desk scrap in memory
  210.    memory scrap [handle]}
  211. ScrapCount = $968;                {[GLOBAL VAR] Count changed by ZeroScrap (word)
  212.    validation byte [word]}
  213. ScrapState = $96A;                {[GLOBAL VAR] Tells where desk scrap is (word)
  214.    scrap state [word]}
  215. ScrapName = $96C;                {[GLOBAL VAR] Pointer to scrap file name (preceded by length byte)
  216.    pointer to scrap name [pointer]}
  217. IntlSpec = $BA0;                {[GLOBAL VAR]  (long) - ptr to extra Intl data }
  218. SwitcherTPtr = $286;            {[GLOBAL VAR]  Switcher's switch table }
  219. CPUFlag = $12F;                    {[GLOBAL VAR]  $00=68000, $01=68010, $02=68020 (old ROM inits to $00)}
  220. VIA = $1D4;                        {[GLOBAL VAR] VIA base address
  221.    VIA base address [pointer]}
  222. IWM = $1E0;                        {[GLOBAL VAR]  IWM base address [pointer]}
  223. Lvl1DT = $192;                    {[GLOBAL VAR] Level-1 secondary interrupt vector table (32 bytes)
  224.    Interrupt level 1 dispatch table [32 bytes]}
  225. Lvl2DT = $1B2;                    {[GLOBAL VAR] Level-2 secondary interrupt vector table (32 bytes)
  226.    Interrupt level 2 dispatch table [32 bytes]}
  227. ExtStsDT = $2BE;                {[GLOBAL VAR] External/status interrupt vector table (16 bytes)
  228.    SCC ext/sts secondary dispatch table [16 bytes]}
  229. SPValid = $1F8;                    {[GLOBAL VAR] Validity status (byte)
  230.    validation field ($A7) [byte]}
  231. SPATalkA = $1F9;                {[GLOBAL VAR] AppleTalk node ID hint for modem port (byte)
  232.    AppleTalk node number hint for port A}
  233. SPATalkB = $1FA;                {[GLOBAL VAR] AppleTalk node ID hint for printer port (byte)
  234.    AppleTalk node number hint for port B}
  235. SPAlarm = $200;                    {[GLOBAL VAR] Alarm setting (long)
  236.    alarm time [long]}
  237. SPFont = $204;                    {[GLOBAL VAR] Application font number minus 1 (word)
  238.    default application font number minus 1 [word]}
  239. SPKbd = $206;                    {[GLOBAL VAR] Auto-key threshold and rate (byte)
  240.    kbd repeat thresh in 4/60ths [2 4-bit]}
  241. SPPrint = $207;                    {[GLOBAL VAR] Printer connection (byte)
  242.    print stuff [byte]}
  243. SPVolCtl = $208;                {[GLOBAL VAR] Speaker volume setting in parameter RAM (byte)
  244.    volume control [byte]}
  245. SPClikCaret = $209;                {[GLOBAL VAR] Double-click and caret-blink times (byte)
  246.    double click/caret time in 4/60ths[2 4-bit]}
  247. SPMisc1 = $20A;                    {[GLOBAL VAR]  miscellaneous [1 byte]}
  248. SPMisc2 = $20B;                    {[GLOBAL VAR] Mouse scaling, system startup disk, menu blink (byte)
  249.    miscellaneous [1 byte]}
  250. GetParam = $1E4;                {[GLOBAL VAR]  system parameter scratch [20 bytes]}
  251. SysParam = $1F8;                {[GLOBAL VAR] Low-memory copy of parameter RAM (20 bytes)
  252.    system parameter memory [20 bytes]}
  253. CrsrThresh = $8EC;                {[GLOBAL VAR] Mouse-scaling threshold (word) 
  254.    delta threshold for mouse scaling [word]}
  255. JCrsrTask = $8EE;                {[GLOBAL VAR]  address of CrsrVBLTask [long]}
  256. MTemp = $828;                    {[GLOBAL VAR]  Low-level interrupt mouse location [long]}
  257. RawMouse = $82C;                {[GLOBAL VAR]  un-jerked mouse coordinates [long]}
  258. CrsrRect = $83C;                {[GLOBAL VAR]  Cursor hit rectangle [8 bytes]}
  259. TheCrsr = $844;                    {[GLOBAL VAR]  Cursor data, mask & hotspot [68 bytes]}
  260. CrsrAddr = $888;                {[GLOBAL VAR]  Address of data under cursor [long]}
  261. CrsrSave = $88C;                {[GLOBAL VAR]  data under the cursor [64 bytes]}
  262. CrsrVis = $8CC;                    {[GLOBAL VAR]  Cursor visible? [byte]}
  263. CrsrBusy = $8CD;                {[GLOBAL VAR]  Cursor locked out? [byte]}
  264. CrsrNew = $8CE;                    {[GLOBAL VAR]  Cursor changed? [byte]}
  265. CrsrState = $8D0;                {[GLOBAL VAR]  Cursor nesting level [word]}
  266. CrsrObscure = $8D2;                {[GLOBAL VAR]  Cursor obscure semaphore [byte]}
  267. KbdVars = $216;                    {[GLOBAL VAR]  Keyboard manager variables [4 bytes]}
  268. KbdType = $21E;                    {[GLOBAL VAR]  keyboard model number [byte]}
  269. MBState = $172;                    {[GLOBAL VAR]  current mouse button state [byte]}
  270. KeyMapLM = $174;                {[GLOBAL VAR] KeyMap has name conflict w/ type. Bitmap of the keyboard [4 longs]}
  271. KeypadMap = $17C;                {[GLOBAL VAR]  bitmap for numeric pad-18bits [long]}
  272. Key1Trans = $29E;                {[GLOBAL VAR]  keyboard translator procedure [pointer]}
  273. Key2Trans = $2A2;                {[GLOBAL VAR]  numeric keypad translator procedure [pointer]}
  274. JGNEFilter = $29A;                {[GLOBAL VAR]  GetNextEvent filter proc [pointer]}
  275. KeyMVars = $B04;                {[GLOBAL VAR]  (word) for ROM KEYM proc state}
  276. Mouse = $830;                    {[GLOBAL VAR]  processed mouse coordinate [long]}
  277. CrsrPin = $834;                    {[GLOBAL VAR]  cursor pinning rectangle [8 bytes]}
  278. CrsrCouple = $8CF;                {[GLOBAL VAR]  cursor coupled to mouse? [byte]}
  279. CrsrScale = $8D3;                {[GLOBAL VAR]  cursor scaled? [byte]}
  280. MouseMask = $8D6;                {[GLOBAL VAR]  V-H mask for ANDing with mouse [long]}
  281. MouseOffset = $8DA;                {[GLOBAL VAR]  V-H offset for adding after ANDing [long]}
  282. AlarmState = $21F;                {[GLOBAL VAR]  Bit7=parity, Bit6=beeped, Bit0=enable [byte]}
  283. VBLQueue = $160;                {[GLOBAL VAR] Vertical retrace queue header (10 bytes)
  284.    VBL queue header [10 bytes]}
  285. SysEvtMask = $144;                {[GLOBAL VAR] System event mask (word)
  286.    system event mask [word]}
  287. SysEvtBuf = $146;                {[GLOBAL VAR]  system event queue element buffer [pointer]}
  288. EventQueue = $14A;                {[GLOBAL VAR] Event queue header (10 bytes)
  289.    event queue header [10 bytes]}
  290. EvtBufCnt = $154;                {[GLOBAL VAR]  max number of events in SysEvtBuf - 1 [word]}
  291. GZRootHnd = $328;                {[GLOBAL VAR] Handle to relocatable block not to be moved by grow zone function
  292.    root handle for GrowZone [handle]}
  293. GZRootPtr = $32C;                {[GLOBAL VAR]  root pointer for GrowZone [pointer]}
  294. GZMoveHnd = $330;                {[GLOBAL VAR]  moving handle for GrowZone [handle]}
  295. MemTop = $108;                    {[GLOBAL VAR] Address of end of RAM (on Macintosh XL, end of RAM available to applications)
  296.    top of memory [pointer]}
  297. MmInOK = $12E;                    {[GLOBAL VAR]  initial memory mgr checks ok? [byte]}
  298. HpChk = $316;                    {[GLOBAL VAR]  heap check RAM code [pointer]}
  299. MaskBC = $31A;                    {[GLOBAL VAR]  Memory Manager Byte Count Mask [long]}
  300. MaskHandle = $31A;                {[GLOBAL VAR]  Memory Manager Handle Mask [long]}
  301. MaskPtr = $31A;                    {[GLOBAL VAR]  Memory Manager Pointer Mask [long]}
  302. MinStack = $31E;                {[GLOBAL VAR] Minimum space allotment for stack (long)
  303.    min stack size used in InitApplZone [long]}
  304. DefltStack = $322;                {[GLOBAL VAR] Default space allotment for stack (long) 
  305.    default size of stack [long]}
  306. MMDefFlags = $326;                {[GLOBAL VAR]  default zone flags [word]}
  307. DSAlertTab = $2BA;                {[GLOBAL VAR] Pointer to system error alert table in use
  308.    system error alerts [pointer]}
  309. DSAlertRect = $3F8;                {[GLOBAL VAR] Rectangle enclosing system error alert (8 bytes)
  310.    rectangle for disk-switch alert [8 bytes]}
  311. DSDrawProc = $334;                {[GLOBAL VAR]  alternate syserror draw procedure [pointer]}
  312. DSWndUpdate = $15D;                {[GLOBAL VAR]  GNE not to paintBehind DS AlertRect? [byte]}
  313. WWExist = $8F2;                    {[GLOBAL VAR]  window manager initialized? [byte]}
  314. QDExist = $8F3;                    {[GLOBAL VAR]  quickdraw is initialized [byte]}
  315. ResumeProc = $A8C;                {[GLOBAL VAR] Address of resume procedure
  316.    Resume procedure from InitDialogs [pointer]}
  317. DSErrCode = $AF0;                {[GLOBAL VAR] Current system error ID (word)
  318.    last system error alert ID}
  319. IntFlag = $15F;                    {[GLOBAL VAR]  reduce interrupt disable time when bit 7 = 0}
  320. SerialVars = $2D0;                {[GLOBAL VAR]  async driver variables [16 bytes]}
  321. ABusVars = $2D8;                {[GLOBAL VAR] Pointer to AppleTalk variables
  322.   ;Pointer to AppleTalk local variables}
  323. ABusDCE = $2DC;                    {[GLOBAL VAR] ;Pointer to AppleTalk DCE}
  324. PortAUse = $290;                {[GLOBAL VAR]  bit 7: 1 = not in use, 0 = in use}
  325. PortBUse = $291;                {[GLOBAL VAR] Current availability of serial port B (byte)
  326.    port B use, same format as PortAUse}
  327. SCCASts = $2CE;                    {[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - A [byte]}
  328. SCCBSts = $2CF;                    {[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - B [byte]}
  329. DskErr = $142;                    {[GLOBAL VAR]  disk routine result code [word]}
  330. PWMBuf2 = $312;                    {[GLOBAL VAR]  PWM buffer 1 (or 2 if sound) [pointer]}
  331. SoundPtr = $262;                {[GLOBAL VAR] Pointer to four-tone record
  332.    4VE sound definition table [pointer]}
  333. SoundBase = $266;                {[GLOBAL VAR] Pointer to free-form synthesizer buffer
  334.    sound bitMap [pointer]}
  335. SoundVBL = $26A;                {[GLOBAL VAR]  vertical retrace control element [16 bytes]}
  336. SoundDCE = $27A;                {[GLOBAL VAR]  sound driver DCE [pointer]}
  337. SoundActive = $27E;                {[GLOBAL VAR]  sound is active? [byte]}
  338. SoundLevel = $27F;                {[GLOBAL VAR] Amplitude in 740-byte buffer (byte)
  339.    current level in buffer [byte]}
  340. CurPitch = $280;                {[GLOBAL VAR] Value of count in square-wave synthesizer buffer (word)
  341.    current pitch value [word]}
  342. DskVerify = $12C;                {[GLOBAL VAR]  used by 3.5 disk driver for read/verify [byte]}
  343. TagData = $2FA;                    {[GLOBAL VAR]  sector tag info for disk drivers [14 bytes]}
  344. BufTgFNum = $2FC;                {[GLOBAL VAR] File tags buffer:  file number (long)
  345.    file number [long]}
  346. BufTgFFlg = $300;                {[GLOBAL VAR] File tags buffer:  flags (word:  bit 1=1 if resource fork) 
  347.    flags [word]}
  348. BufTgFBkNum = $302;                {[GLOBAL VAR] File tags buffer:  logical block number (word)
  349.    logical block number [word]}
  350. BufTgDate = $304;                {[GLOBAL VAR] File tags buffer:  date and time of last modification (long)
  351.    time stamp [word]}
  352. ScrDmpEnb = $2F8;                {[GLOBAL VAR] 0 if GetNextEvent shouldn't process Command-Shift-number combinations (byte)
  353.    screen dump enabled? [byte]}
  354. ScrDmpType = $2F9;                {[GLOBAL VAR]  FF dumps screen, FE dumps front window [byte]}
  355. ScrapVars = $960;                {[GLOBAL VAR]  scrap manager variables [32 bytes]}
  356. ScrapInfo = $960;                {[GLOBAL VAR]  scrap length [long]}
  357. ScrapEnd = $980;                {[GLOBAL VAR]  end of scrap vars}
  358. ScrapTag = $970;                {[GLOBAL VAR]  scrap file name [STRING[15]]}
  359. LaunchFlag = $902;                {[GLOBAL VAR]  from launch or chain [byte]}
  360. SaveSegHandle = $930;            {[GLOBAL VAR]  seg 0 handle [handle]}
  361. CurJTOffset = $934;                {[GLOBAL VAR] Offset to jump table from location pointed to by A5 (word)
  362.    current jump table offset [word]}
  363. CurPageOption = $936;            {[GLOBAL VAR] Sound/screen buffer configuration passed to Chain or Launch (word)
  364.    current page 2 configuration [word]}
  365. LoaderPBlock = $93A;            {[GLOBAL VAR]  param block for ExitToShell [10 bytes]}
  366. CurApRefNum = $900;                {[GLOBAL VAR] Reference number of current application's resource file (word)
  367.    refNum of application's resFile [word]}
  368. CurrentA5 = $904;                {[GLOBAL VAR] Address of boundary between application globals and application parameters
  369.    current value of A5 [pointer]}
  370. CurStackBase = $908;            {[GLOBAL VAR] Address of base of stack; start of application globals
  371.    current stack base [pointer]}
  372. CurApName = $910;                {[GLOBAL VAR] Name of current application (length byte followed by up to 31 characters)
  373.    name of application [STRING[31]]}
  374. LoadTrap = $12D;                {[GLOBAL VAR]  trap before launch? [byte]}
  375. SegHiEnable = $BB2;                {[GLOBAL VAR]  (byte) 0 to disable MoveHHi in LoadSeg}
  376.  
  377. { Window Manager Globals }
  378. WindowList = $9D6;                {[GLOBAL VAR] Pointer to first window in window list; 0 if using events but not windows
  379.   Z-ordered linked list of windows [pointer]}
  380. PaintWhite = $9DC;                {[GLOBAL VAR] Flag for whether to paint window white before update event (word)
  381.   erase newly drawn windows? [word]}
  382. WMgrPort = $9DE;                {[GLOBAL VAR] Pointer to Window Manager port 
  383.   window manager's grafport [pointer]}
  384. GrayRgn = $9EE;                    {[GLOBAL VAR] Handle to region drawn as desktop
  385.   rounded gray desk region [handle]}
  386. CurActivate = $A64;                {[GLOBAL VAR] Pointer to window to receive activate event
  387.   window slated for activate event [pointer]}
  388. CurDeactive = $A68;                {[GLOBAL VAR] Pointer to window to receive deactivate event
  389.   window slated for deactivate event [pointer]}
  390. DragHook = $9F6;                {[GLOBAL VAR] Address of procedure to execute during TrackGoAway, DragWindow, GrowWindow, DragGrayRgn, TrackControl, and DragControl
  391.   user hook during dragging [pointer]}
  392. DeskPattern = $A3C;                {[GLOBAL VAR] Pattern with which desktop is painted (8 bytes)
  393.   desk pattern [8 bytes]}
  394. DeskHook = $A6C;                {[GLOBAL VAR] Address of procedure for painting desktop or responding to clicks on desktop
  395.   hook for painting the desk [pointer]}
  396. GhostWindow = $A84;                {[GLOBAL VAR] Pointer to window never to be considered frontmost
  397.   window hidden from FrontWindow [pointer]}
  398.  
  399. { Text Edit Globals }
  400. TEDoText = $A70;                {[GLOBAL VAR] Address of TextEdit multi-purpose routine
  401.   textEdit doText proc hook [pointer]}
  402. TERecal = $A74;                    {[GLOBAL VAR] Address of routine to recalculate line starts for TextEdit
  403.   textEdit recalText proc hook [pointer]}
  404. TEScrpLength = $AB0;            {[GLOBAL VAR] Size in bytes of TextEdit scrap (long)
  405.   textEdit Scrap Length [word]}
  406. TEScrpHandle = $AB4;            {[GLOBAL VAR] Handle to TextEdit scrap
  407.   textEdit Scrap [handle]}
  408. TEWdBreak = $AF6;                {[GLOBAL VAR] default word break routine [pointer]}
  409. WordRedraw = $BA5;                {[GLOBAL VAR] (byte) - used by TextEdit RecalDraw}
  410. TESysJust = $BAC;                {[GLOBAL VAR] (word) system justification (intl. textEdit)}
  411.  
  412. { Resource Manager Globals }
  413. TopMapHndl = $A50;                {[GLOBAL VAR] Handle to resource map of most recently opened resource file
  414.   topmost map in list [handle]}
  415. SysMapHndl = $A54;                {[GLOBAL VAR] Handle to map of system resource file
  416.   system map [handle]}
  417. SysMap = $A58;                    {[GLOBAL VAR] Reference number of system resource file (word)
  418.   reference number of system map [word]}
  419. CurMap = $A5A;                    {[GLOBAL VAR] Reference number of current resource file (word) 
  420.   reference number of current map [word]}
  421. ResReadOnly = $A5C;                {[GLOBAL VAR] Read only flag [word]}
  422. ResLoad = $A5E;                    {[GLOBAL VAR] Current SetResLoad state (word)
  423.   Auto-load feature [word]}
  424. ResErr = $A60;                    {[GLOBAL VAR] Current value of ResError (word)
  425.   Resource error code [word]}
  426. ResErrProc = $AF2;                {[GLOBAL VAR] Address of resource error procedure
  427.   Resource error procedure [pointer]}
  428. SysResName = $AD8;                {[GLOBAL VAR] Name of system resource file (length byte followed by up to 19 characters)
  429.   Name of system resource file [STRING[19]]}
  430. RomMapInsert = $B9E;            {[GLOBAL VAR] (byte) determines if we should link in map}
  431. TmpResLoad = $B9F;                {[GLOBAL VAR] second byte is temporary ResLoad value.}
  432.  
  433. { Menu Mgr globals }
  434. MBarHeight = $BAA;                {[GLOBAL VAR] height of the menu bar}
  435.  
  436. { CommToolbox Global }
  437. CommToolboxGlobals = $0BB4;        {[GLOBAL VAR] pointer to CommToolbox globals }
  438.  
  439.  
  440. {$ENDC} { UsingSysEqu }
  441.  
  442. {$IFC NOT UsingIncludes}
  443.  END.
  444. {$ENDC}
  445.  
  446.